<?php
class BrokerAction extends BaseAction {
	public function index() 
	{
		$quyu = M("area")->select();
		$this->assign("area",$quyu);
		$type = M("type")->select();
		$this->assign("type",$type);
		$rent = M("rent")->select();
		$this->assign("rent",$rent);
		import ( "ORG.Util.Page" );
		$count = M ( "vip" )->count ();
		$Page = new Page ( $count, 10 );
		$show = $Page->show ();
		$vip = M ( "vip" )->limit ( $Page->firstRow . ',' . $Page->listRows )->select ();
		$start = $Page->firstRow + 1;
		$end = $start + 15;
		if ($end > $count) {
			$end = $count;
		}
		$this->assign ( "count", $count );
		$this->assign ( "start", $start );
		$this->assign ( "end", $end );
		$this->assign ( "vip", $vip );
		$this->assign ( "page", $show );
		$this->display ();
	}
}

?>